package com.wx.bean;

import java.beans.PropertyChangeSupport;


public class Student {

	/**
	 * @param args
	 */
	long classno;
	String name;
	int age;
	boolean sex;
	private PropertyChangeSupport change=new PropertyChangeSupport(this);
	
	
	public Student() {
		classno=12345;
		name="张三";
		age=20;
		sex=true;
	}

	public long getClassno() {
		return classno;
	}

	public void setClassno(long classno) {
		this.classno = classno;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		String oldName=this.name;
		this.name = name;
		change.firePropertyChange("name", oldName, name);
	}

	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public boolean isSex() {
		return sex;
	}

	public void setSex(boolean sex) {
		this.sex = sex;
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		int a=0;
		for (int i = 0; i <= 100; i++) {
			a+=i;
		}
		System.out.println("a="+a);
	}

}
